
public class Page {
	
	private String text;
	private int index;				// Page index spot in secondaryMemory array
	private Page forward;
	private Page backward;
	
	public Page(String text,int index,Page backward)
	{
		this.text=text;
		this.index=index;
		this.forward=null;
		this.backward=backward;
	}
	
	public void setText(String text)
	{
		this.text=text;
	}
	
	public void setIndex(int index)
	{
		this.index=index;
	}
	
	public void setForward(Page forward)
	{
		this.forward=forward;
	}
	
	public void setBackward(Page backward)
	{
		this.backward=backward;
	}
	
	public String getText()
	{
		return this.text;
	}
	
	public int getIndex()
	{
		return this.index;
	}
	
	public Page getForward()
	{
		return this.forward;
	}
	
	public Page getBackward()
	{
		return this.backward;
	}
}
